package cate.game.role.farm.spicefb.msg;

import cate.common.util.GameResult;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBSpiceFb;

@ClientMsg(title = "水晶峡谷购买挑战次数的请求")
public class SpiceFbBuyChallengeTimesReq implements MsgInput {
    @Override
    public void execute(GameBody game, ClientContext cc) {
        GameResult<Void> r = cc.getRole().getFarm().spiceFb.bugChallengeTimes();
        game.notice.message(cc.getRole(), r, true);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBSpiceFb.BUY_CHALLENGE_TIMES_REQ;
    }
}
